//
//  SRSleep.h
//  SportRing
//
//  Created by mykoma on 14/12/5.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class SRDay, SRSleepPart;

@interface SRSleep : NSManagedObject

@property (nonatomic, retain) NSDate * endTime;
@property (nonatomic, retain) NSNumber * isSynced;
@property (nonatomic, retain) NSDate * startTime;
@property (nonatomic, retain) SRDay *day;
@property (nonatomic, retain) NSSet *sleepParts;
@end

@interface SRSleep (CoreDataGeneratedAccessors)

- (void)addSleepPartsObject:(SRSleepPart *)value;
- (void)removeSleepPartsObject:(SRSleepPart *)value;
- (void)addSleepParts:(NSSet *)values;
- (void)removeSleepParts:(NSSet *)values;

@end
